package com.jnshu.dao;

import com.jnshu.pojo.Manage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ManageMapper {
    //根据id删除
    int deleteByPrimaryKey(Long id);
    //新增管理
    int insertSelective(Manage record);
    //根据id查询
    Manage selectByPrimaryKey(Long id);
    //根据id更新
    int updateByPrimaryKeySelective(Manage record);
    //分页列表查询
    List<Manage> selectManageList();
    //根据角色id查询管理账户
    List<Manage> selectByRoleId(Long id);
    //根据用户名查询
    Manage selectByManageName(String name);

}